﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        mc:Ignorable="d" x:Class="Gao.Poker.App.MainWin"
        Title="德州扑克俱乐部管理系统" Height="768" Width="1100" AllowsTransparency="True" 
        WindowStyle="None" Background="{x:Null}" MouseLeftButtonDown="Window_MouseLeftButtonDown" WindowStartupLocation="CenterScreen" FontSize="12">
    <Border BorderBrush="Black" BorderThickness="0" CornerRadius="5" Margin="10">
        <Border.Effect>
            <DropShadowEffect ShadowDepth="0" Opacity="0.8"/>
        </Border.Effect>
        <Border.Background>
            <ImageBrush ImageSource="skin/frame.jpg"/>
        </Border.Background>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="25.77"/>
                <RowDefinition Height="90"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>

            <Border Grid.Row="1" BorderBrush="White" BorderThickness="0" Margin="0" Grid.ColumnSpan="3">
                <Border.Background>
                    <ImageBrush ImageSource="skin/top.jpg"/>
                </Border.Background>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="20,1,50,1" Height="80"  Background="{x:Null}">
                    <Button Margin="0" BorderBrush="{x:Null}" Background="{x:Null}" Click="Member_Click">
                        <StackPanel Orientation="Vertical" Width="80" Height="80" Background="{x:Null}">
                            <Image Source="skin\ico\ico_member.png" Width="55"/>
                            <TextBlock Text="会员管理" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" Foreground="#FFFED885" />
                        </StackPanel>
                    </Button>
                    <Button Margin="0,0,0,0" Click="Table_Click" BorderBrush="{x:Null}" Background="{x:Null}">
                        <StackPanel Orientation="Vertical" Width="80" Height="80" Background="{x:Null}">
                            <Image Source="skin\ico\ico_game.png" Width="55"/>
                            <TextBlock Text="桌台设定" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" Foreground="#FFFED885"/>
                        </StackPanel>
                    </Button>
                    <Button Margin="0,0,0,0" Click="Game_Click" BorderBrush="{x:Null}" Background="{x:Null}">
                        <StackPanel Orientation="Vertical" Width="80" Height="80" Background="{x:Null}">
                            <Image Source="skin\ico\ico_game.png" Width="55"/>
                            <TextBlock Text="比赛管理" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"  Foreground="#FFFED885"/>
                        </StackPanel>
                    </Button>
                    <Button Margin="0,0,0,0" Click="Store_Click" BorderBrush="{x:Null}" Background="{x:Null}">
                        <StackPanel Orientation="Vertical" Width="80" Height="80" Background="{x:Null}">
                            <Image Source="skin\ico\ico_store.png" Width="55"/>
                            <TextBlock Text="消费管理" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" Foreground="#FFFED885"/>
                        </StackPanel>
                    </Button>
                    <Button Margin="0,0,0,0" Click="Storage_Click" BorderBrush="{x:Null}" Background="{x:Null}">
                        <StackPanel Orientation="Vertical" Width="80" Height="80" Background="{x:Null}">
                            <Image Source="skin\ico\ico_store.png" Width="55"/>
                            <TextBlock Text="库存管理" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" Foreground="#FFFED885"/>
                        </StackPanel>
                    </Button>
                    <Button Margin="0,0,0,0" Click="Sms_Click" BorderBrush="{x:Null}" Background="{x:Null}">
                        <StackPanel Orientation="Vertical" Width="80" Height="80" Background="{x:Null}">
                            <Image Source="skin\ico\ico_sms.png" Width="55"/>
                            <TextBlock Text="短信" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" Foreground="#FFFED885"/>
                        </StackPanel>
                    </Button>
                    <Button Margin="0,0,0,0" Click="Exit_Click" BorderBrush="{x:Null}" Background="{x:Null}">
                        <StackPanel Orientation="Vertical" Width="80" Height="80" Background="{x:Null}">
                            <Image Source="skin\ico\ico_sms.png" Width="55"/>
                            <TextBlock Text="退出" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" Foreground="#FFFED885"/>
                        </StackPanel>
                    </Button>
                </StackPanel>
            </Border>
            <Border Grid.Row="2" BorderBrush="White" BorderThickness="0" Margin="0" Grid.ColumnSpan="3">
                <Border.Background>
                    <ImageBrush ImageSource="skin\bg-right.jpg"/>
                </Border.Background>
                <ContentControl Name="cc" />
            </Border>
            <Label Content="德州扑克俱乐部管理系统：V2.0.0.0" HorizontalAlignment="Left" d:LayoutOverrides="Height" Width="211" Foreground="#A794E9FF" FontWeight="Bold"/>
            <Label Content="ROYAL POKER CLUB  扑克俱乐部运营管理软件" Margin="0,0.2,0,-0.4" Grid.Row="3" Foreground="#A794E9FF" FontWeight="Bold" BorderThickness="0" BorderBrush="White" HorizontalAlignment="Left" Width="373"/>
            <Rectangle Stroke="Black" HorizontalAlignment="Left" Height="Auto" Width="90" Grid.Row="1" StrokeThickness="0">
                <Rectangle.Fill>
                    <ImageBrush ImageSource="skin/logo.png" Stretch="Fill" TileMode="FlipXY"/>
                </Rectangle.Fill>
            </Rectangle>
            <Button Content="x" HorizontalAlignment="Right" Margin="0,0,2.625,8" Style="{DynamicResource SysButtonStyle}" Width="44.315" Name="closeButton" Click="closeButton_Click" />
            <Button Content="max" HorizontalAlignment="Right" Margin="0,0,46.94,8" Style="{DynamicResource MaxButtonStyle}" Width="41.5" Name="maxButton" Click="maxButton_Click">
                <Button.Background>
                    <ImageBrush ImageSource="skin/Button/MAX.png" Stretch="Uniform"/>
                </Button.Background>
            </Button>
            <Button Content="mni" HorizontalAlignment="Right" Margin="0,0,88.441,8" Style="{DynamicResource MaxButtonStyle}" Width="41.5" Name="mniButton" Click="mniButton_Click">
                <Button.Background>
                    <ImageBrush ImageSource="skin/Button/MNI.png" Stretch="Uniform"/>
                </Button.Background>
            </Button>
            <Button x:Name="menuButton" HorizontalAlignment="Right" Margin="0,0,129.942,8" Style="{DynamicResource MButtonStyle}" Width="31.833" Click="menuButton_Click">
                <Button.Background>
                    <ImageBrush ImageSource="skin/Button/M.png" Stretch="Uniform"/>
                </Button.Background>
            </Button>
            <Popup x:Name="Menu" AllowsTransparency="True" Margin="0,-1,0,1" PlacementTarget="{Binding ElementName=menuButton}" StaysOpen="False" PopupAnimation="Scroll">
                <Grid Height="113.667" Width="96" Margin="0" HorizontalAlignment="Left">
                    <Border BorderThickness="1" CornerRadius="3" Background="#FFEFEFEF" Margin="3">
                        <Border.Effect>
                            <DropShadowEffect ShadowDepth="0" Opacity="0.495"/>
                        </Border.Effect>
                        <StackPanel Margin="0,4">
                            <MenuItem Header="设 置" Style="{DynamicResource MenuItemStyle}"/>
                            <MenuItem Header="更 新"/>
                            <MenuItem Header="关 于"/>
                            <MenuItem Header="退 出"/>
                        </StackPanel>
                    </Border>
                </Grid>
            </Popup>
            <Rectangle Stroke="Black" StrokeThickness="0" Width="1" Margin="0,0,129.2,10.77" HorizontalAlignment="Right" Height="17">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#85000000"/>
                        <GradientStop Offset="1" Color="#1A4D4D4D"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle Stroke="Black" StrokeThickness="0" Width="1" Margin="0,0,88.2,8.77" HorizontalAlignment="Right" Height="17">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#85000000"/>
                        <GradientStop Offset="1" Color="#1A4D4D4D"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle Stroke="Black" StrokeThickness="0" Width="1" Margin="0,0,46.2,8.77" HorizontalAlignment="Right" Height="17">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#85000000"/>
                        <GradientStop Offset="1" Color="#1A4D4D4D"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle Height="3" Margin="0,0,161.775,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#61FFFFFF"/>
                        <GradientStop Offset="1" Color="#1A4D4D4D"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Button Background="{Binding null}" Click="ModifyPWd_Click" Content="修改密码" Margin="2,2,10,2" Grid.Row="3" Foreground="#A794E9FF" FontWeight="Bold" BorderThickness="0,0,0,1" BorderBrush="White" HorizontalAlignment="Right" Width="60"/>
            <TextBlock Name="tbUserName" Text="xxx" HorizontalAlignment="Right" Grid.Row="3"  VerticalAlignment="Center" Margin="2,2,74,2"/>
        </Grid>
    </Border>
</Window>
